/* table{
    border-collapse: collapse;
    border: 2px solid rgb(140 140 140);
    font-family: sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    width: 100%;
}
  
caption{
    caption-side: bottom;
    padding: 10px;
    font-weight: bold;
}
  
thead{
    background-color: rgb(228 240 245);
}
  
th,td {
    border: 1px solid rgb(160 160 160);
    padding: 8px 10px;
    text-align: center;
    height: 30px;
}
tbody > tr:nth-of-type(2n) {
    background-color: rgb(237 238 242);
} 
td>button{
    width: 50%;
    background-color: #24b4fb;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    padding: 0.8em 1.2em 0.8em 1em;
    transition: all ease-in-out 0.2s;
    font-size: 16px;
    color: #FFF;
}
td>button:hover{
    background-color: #0e7eb6;
} */

/* Table Container */
table {
    width: 90%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Table Header */
thead {
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
}
thead>tr{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

th {
    width: 13%;
    text-align: center;
    padding: 18px 15px;
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Body */
td {
    width: 13%;
    padding: 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
}
tbody{
    display: block;
    width: 100%;
    padding-top: 60px;
    /* height: auto;
    position: absolute;
    top: 60px; */
}
/* Table Row Hover Effect */
tbody tr {
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 129, 235, 0.1);
}

/* Zebra Striping */
tbody tr:nth-child(even) {
    background-color: #f9fafc;
}

/* Button Styling */
button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    min-width: 100px;
    /* background: linear-gradient(-45deg, #4481eb 0, #04befe 100%); */
}

/* Button States */
button[style*="background-color: #24b4fb"] {
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
}

button[style*="background-color: #ef2d2d"] {
    background: linear-gradient(-45deg, #eb4444 0, #fe0404 100%);
}

/* Button Hover Effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 129, 235, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 12px;
    }
    
    button {
        padding: 6px 15px;
        min-width: 80px;
    }
}

/* Text Overflow Handling */
td {
    max-width: 200px;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    white-space: nowrap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.empty-table {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}